<template>
    <div>
        <mt-swipe :auto="4000">
            <!-- 在组件中，使用v-for循环的话，一定要是用key -->
            <mt-swipe-item v-for="(item,index) in lunbotuList" :key="index">
                <img :src="item.img" alt="" :class="{'full':full}">
            </mt-swipe-item> 
        </mt-swipe>
    </div>    
</template>

<script>
export default {
    props:['lunbotuList','full']
}
</script>

<style lang="scss" scoped>
.mint-swipe{
  height: 200px;

  .mint-swipe-item{
      text-align: center;

    .full{
        width: 100%;
    }
    img{
      height: 100%;
    }
  }
}
</style>
